<!DOCTYPE html>
<html>
<head>
    <title>JS对象测试</title>
    <meta charset="utf-8"/>
    <script src="../../../js/jquery-1.10.1.min.js"></script>
    <script src="../../../js/json2.js"></script>
    <script>
        var person = {
            name: "张三",
            age: 26,
            gender: "男",
            eat: function( stuff ) {
            alert( "我在吃" + stuff );
        }
        };
        person.height = 176;
        alert(JSON.stringify(person));
        delete person[ "age" ];
        alert("DELETE:" + JSON.stringify(person));
        person.eat("吃吧");

        delete person[ "eat" ];
        alert(JSON.stringify(person));
        person.eat("吃吧");
    </script>
</head>
<body>

</body>
</html>